package one.stand.mapper;

import one.stand.model.Dynamic;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * @author Administrator
 */
public interface DynamicMapperExt extends DynamicMapper {

    Dynamic selectRelate(@Param("createUserId") Integer createUserId, @Param("relateType") Integer relateType, @Param("relateId") Integer relateId);

    void deleteByRelate(@Param("relateType") Integer relateType, @Param("relateId") Integer relateId);

    void updateByRelate(@Param("relateType") Integer relateType, @Param("relateId") Integer relateId,
                        @Param("title") String title, @Param("details") String details, @Param("photos") String photos);

    List<Dynamic> selectList(@Param("companyId") Integer companyId, @Param("userId") Integer userId, @Param("keyword") String keyword, @Param("viewDate") Date viewDate);
}